package de.greenrobot.daoexample.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by hy on 2015/5/5.
 */
public class Province implements Serializable {
    private String code="";
    private String name="";
    private List<City> children=new ArrayList<City>();

    public Province(String code, String name, List<City> children) {
        this.code = code;
        this.name = name;
        this.children = children;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<City> getChildren() {
        return children;
    }

    public void setChildren(List<City> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "Province{" +
                "code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", children=" + children +
                '}';
    }
}
